package com.roncoo.education.course.service.api;

import java.util.List;

import javax.validation.constraints.NotNull;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.roncoo.education.common.core.base.Result;
import com.roncoo.education.course.service.api.biz.ApiCourseChapterPeriodBiz;
import com.roncoo.education.course.service.api.resp.ApiCourseChapterPeriodResp;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;

/**
 * API-课时信息
 *
 * @author wujing
 * @date 2023-08-28
 */
@Api(tags = "API-课时信息")
@RestController
@RequiredArgsConstructor
@RequestMapping("/course/api/course/chapter/period")
public class ApiCourseChapterPeriodController {

    @NotNull
    private final ApiCourseChapterPeriodBiz biz;

    /**
     * 新闻公告详情接口
     */
    @ApiOperation(value = "公告资讯详情接口", notes = "根据公告资讯ID获取信息")
    @RequestMapping(value = "/attachment/{periodId}", method = RequestMethod.POST)
    public Result<ApiCourseChapterPeriodResp> view(@PathVariable Long periodId) {
        return biz.view(periodId);
    }  
}
